package com.entity;

import org.springframework.stereotype.Component;

@Component
public class Goods {
	private int good_id;
	private String good_name;
	private int shop_id;
	private String g_image;
	private int number;
	private double price;
	private int buy_times;
	private String good_size;
	private int issale; 
	private String good_desc;
	private String type;
	
	public Goods(int good_id, String good_name, int shop_id,String g_image, int number, double price,String good_size, String good_desc, String type) {
		super();
		this.good_id = good_id;
		this.good_name = good_name;
		this.shop_id = shop_id;
		this.g_image = g_image;
		this.number = number;
		this.price = price;
		this.good_size = good_size;
		this.good_desc = good_desc;
		this.type = type;
	}	
	public Goods(String good_name, int shop_id,String g_image, int number, double price,String good_size, String good_desc, String type) {
		super();
		this.good_name = good_name;
		this.shop_id = shop_id;
		this.g_image = g_image;
		this.number = number;
		this.price = price;
		this.good_size = good_size;
		this.good_desc = good_desc;
		this.type = type;
	}
	public Goods(int good_id, String good_name, int shop_id, String g_image, int number, double price, int buy_times,
			String good_size, int issale, String good_desc, String type) {
		super();
		this.good_id = good_id;
		this.good_name = good_name;
		this.shop_id = shop_id;
		this.g_image = g_image;
		this.number = number;
		this.price = price;
		this.buy_times = buy_times;
		this.good_size = good_size;
		this.issale = issale;
		this.good_desc = good_desc;
		this.type = type;
	}

	@Override
	public String toString() {
		return "Goods [good_id=" + good_id + ", good_name=" + good_name + ", shop_id=" + shop_id + ", g_image="
				+ g_image + ", number=" + number + ", price=" + price + ", buy_times=" + buy_times + ", good_size="
				+ good_size + ", issale=" + issale + ", good_desc=" + good_desc + ", type=" + type + "]";
	}

	public int getGood_id() {
		return good_id;
	}

	public void setGood_id(int good_id) {
		this.good_id = good_id;
	}

	public String getGood_name() {
		return good_name;
	}

	public void setGood_name(String good_name) {
		this.good_name = good_name;
	}

	public int getShop_id() {
		return shop_id;
	}

	public void setShop_id(int shop_id) {
		this.shop_id = shop_id;
	}

	public String getG_image() {
		return g_image;
	}

	public void setG_image(String g_image) {
		this.g_image = g_image;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getBuy_times() {
		return buy_times;
	}

	public void setBuy_times(int buy_times) {
		this.buy_times = buy_times;
	}

	public String getGood_size() {
		return good_size;
	}

	public void setGood_size(String good_size) {
		this.good_size = good_size;
	}

	public int getIssale() {
		return issale;
	}

	public void setIssale(int issale) {
		this.issale = issale;
	}

	public String getGood_desc() {
		return good_desc;
	}

	public void setGood_desc(String good_desc) {
		this.good_desc = good_desc;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Goods() {}
}
